﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TiTi.tea.Comm;

namespace TiTi.tea.Dto
{
    public class OrderDetailDto
    {
        public string name { get; set; }
        public decimal price { get; set; }
        public int num { get; set; }
        public string image { get; set; }
        public string MaterialItem { get; set; }
        [JsonIgnore]
        public string SpecItem { get; set; }
        public string materialItem
        {
            get
            {
                return MaterialItem.IsNullOrEmpty()? null:MaterialItem;
            }
        }
        public object specItem
        {
            get
            {
                return SpecItem.FormJsonTo<object>();
            }
        }
    }
}
